/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package net.easoftware.code.beans;

import java.io.Serializable;
import net.easoftware.code.beans.facade.MICredRubro;

/**
 *
 * @author eder.herrera
 */
public class Columna implements Serializable {

    private String header;
    private String valor;
    private Integer index;
    private Integer parentIndex;
    private Integer grid;
    private MICredRubro rubro;
    private MICreditRowDetail detail;

    public Columna(String header, String valor, Integer index) {
        this.header = header;
        this.index = index;
        this.valor = valor;
    }

    public MICreditRowDetail getDetail() {
        return detail;
    }

    public void setDetail(MICreditRowDetail detail) {
        this.detail = detail;
    }

    public MICredRubro getRubro() {
        return rubro;
    }

    public void setRubro(MICredRubro rubro) {
        this.rubro = rubro;
    }

    public Integer getGrid() {
        return grid;
    }

    public void setGrid(Integer grid) {
        this.grid = grid;
    }

    public Integer getParentIndex() {
        return parentIndex;
    }

    public void setParentIndex(Integer parentIndex) {
        this.parentIndex = parentIndex;
    }

    public String getValor() {
        return valor;
    }

    public void setValor(String valor) {
        this.valor = valor;
    }

    public Integer getIndex() {
        return index;
    }

    public void setIndex(Integer index) {
        this.index = index;
    }

    /**
     * @return the header
     */
    public String getHeader() {
        return header;
    }

    /**
     * @param header the header to set
     */
    public void setHeader(String header) {
        this.header = header;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!( obj instanceof Columna )) {
            return false;
        }
        Columna that = (Columna) obj;

        return ( ( this.header != null ) && ( that.header != null ) ) ? this.header.equals(that.header) : false;
    }

    @Override
    public int hashCode() {
        int hash = 5;
        hash = 89 * hash + ( this.header != null ? this.header.hashCode() : 0 );
        return hash;
    }
}
